package com.baoyouqun.service;

import com.alibaba.cola.dto.Response;
import com.alibaba.cola.dto.SingleResponse;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baoyouqun.domain.CreateCmd.VirtualNumberCreateCmd;
import com.baoyouqun.domain.Query.VirtualNumberQuery;
import com.baoyouqun.domain.UpdateCmd.VirtualNumberUpdateCmd;
import com.baoyouqun.domain.VO.VirtualNumberVO;
import com.baoyouqun.entity.VirtualNumber;

public interface VirtualNumberService extends IService<VirtualNumber> {

    /**
     * 新增并返回实体
     */
    SingleResponse<VirtualNumberVO> create(VirtualNumberCreateCmd cmd);

    Response update(VirtualNumberUpdateCmd cmd);

    /**
     * 根据ID查询VO
     */
    VirtualNumberVO selectById(String id);

    /**
     * 分页查询VO
     */
    IPage<VirtualNumberVO> pageVo(VirtualNumberQuery query);

    SingleResponse<VirtualNumberVO> getUserExtraPhonesInfo(String userId);
}